
package com.dps.omc.dao;

import com.dps.omc.task.message.EnumTaskState;
import com.dps.common.dao.IBaseDAO;
import com.dps.omc.model.Task;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ITaskDAO extends IBaseDAO<Task>{

    List<Task> findListByJobId(@Param("jobId")String jobId);
    List<Task> findNewByJob(@Param("jobId")String jobId);
    List<Task> findNewByJobAndTeam(@Param("jobId")String jobId,@Param("team")String team);
    List<Task> findUnfinishAndExpiredByJob(@Param("jobId")String jobId,@Param("now")String now);
    List<Task> queryByStatusAndStartDate(@Param("status")EnumTaskState status , @Param("queryDate") Date queryDate);

}
